// enhanceApp.js
import VueHighlightJS from 'vue-highlight.js'
import 'highlight.js/styles/atom-one-dark.css'
import ElementUI from 'element-ui'
// import 'babel-polyfill'
// import Es6Promise from 'es6-promise'
// import ZmUi from '../../packages'
// import 'element-ui/lib/theme-chalk/index.css'
import "../../lib/index.css";
import moment from 'moment'
moment.suppressDeprecationWarnings = true // 去掉警告
    // 解决低版本浏览器不支持es6
    // Es6Promise.polyfill()

export default ({
    Vue,
}) => {
    Vue.use(VueHighlightJS),
        Vue.use(ElementUI),
        Vue.prototype.$message = ElementUI.Message,
        Vue.prototype.$loading = ElementUI.Loading.service,
        Vue.prototype.$msgbox = ElementUI.MessageBox,
        Vue.prototype.$alert = ElementUI.MessageBox.alert,
        Vue.prototype.$confirm = ElementUI.MessageBox.confirm,
        Vue.prototype.$prompt = ElementUI.MessageBox.prompt
        // 过滤器
        // Object.keys(filters).forEach(key => {
        //   Vue.filter(key, filters[key])
        // })
}